package com.hzeport.bgs22emduty;

import cn.gov.customs.casp.sdk.h4a.entity.Application;
import com.masa.common.datasource.annotation.EnableMasterSlaveDataSource;
import com.masa.common.feign.annotation.EnableMasaFeignClients;
import com.masa.common.job.annotation.EnableMasaXxlJob;
//import com.masa.common.security.annotation.EnableMasaResourceServer;
import com.masa.swagger.annotation.EnableMasaSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 项目启动类
 */
@EnableScheduling
@EnableMasaSwagger2
@EnableMasaFeignClients
@EnableMasterSlaveDataSource
@SpringCloudApplication
//@EnableMasaXxlJob
public class CommunicationApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(CommunicationApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(CommunicationApplication.class);
    }
}
